<template>
  <keep-alive :include="aliveViews" :max="5">
    <router-view v-if="!this.isRefreshing" :key="$route.fullPath" />
  </keep-alive>
</template>
<script lang="ts">
import { mapGetters } from 'vuex';

export default {
  computed: {
    ...mapGetters({
      tabRouterList: 'tabRouter/tabRouterList',
      isRefreshing: 'tabRouter/isRefreshing',
      isUseTabsRouter: 'setting/isUseTabsRouter',
    }),
    aliveViews() {
      // console.log(this.tabRouterList.filter((route) => route.meta?.isAlive).map((route) => route.name),"123123213213123213123213123213123213")
      return this.tabRouterList.filter((route) => route.meta?.isAlive).map((route) => route.name);
    },
  },
};
</script>
<style lang="less" scoped>
.tdesign-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
</style>
